const http = require("http");

//创建服务
const server = http.createServer((req,res)=>{
    res.end("hello world")
})

//监听服务
server.listen(3000,"127.0.0.1",()=>{
    console.log("server is running on http://127.0.0.1:3000")
})
